package errorStatus

const (
	StatusOK       = 0
	StatusLogin    = 100 // RFC 7231, 6.2.1
	StatusPassword = 101
	StatusZhuce    = 102
)

var statusText = map[int]string{
	StatusOK:       "OK",
	StatusLogin:    "error login",    //登录报错
	StatusPassword: "error password", //密码修改报错
	StatusZhuce:    "error zhuce",    //用户名已存在
}

// StatusText returns a text for the HTTP status code. It returns the empty
// string if the code is unknown.
func StatusText(code int) string {
	return statusText[code]
}
